<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
  <div class="navbar navbar-fixed-top">
            <div class="navbar-inner">
                <div class="container-fluid">
                    <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse"> <span class="icon-bar"></span>
                     <span class="icon-bar"></span>
                     <span class="icon-bar"></span>
                    </a>
                    <a class="brand" href="http://git.oschina.net/winter_day/sys" target="_blank">SpringSecurity学习演练项目</a>
                    <div class="nav-collapse collapse">
                        <ul class="nav pull-right">
                            <li class="dropdown">
                                <a href="#" role="button" class="dropdown-toggle" data-toggle="dropdown"> <i class="icon-user"></i> <sec:authentication property="principal.nickName"/> <i class="caret"></i>

                                </a>
                                <ul class="dropdown-menu">
                                    <li>
                                        <a tabindex="-1" href="#">个人中心</a>
                                    </li>
                                    <li class="divider"></li>
                                    <li>
                                        <a tabindex="-1" href="<c:url value='/j_spring_security_logout'/>">注销登陆</a>
                                    </li>
                                </ul>
                            </li>
                        </ul>
                        <ul class="nav">
                        <c:forEach items="${moduleList }" var="module">
                                <li class='<c:if test="${defaultModule ==module.id}">active</c:if>'>
                               	 <a href="<c:url value='${module.url}?moduleId=${module.id }'/>">${module.resourceName }</a>
                                </li>
                           </c:forEach> 
                        </ul>
                    </div>
                    <!--/.nav-collapse -->
                </div>
            </div>
        </div>